import { defineStore } from "pinia";
interface loginInfo {
  username: string;
  password: string;
  captcha: string;
  checkKey: number;
}

export const useLogin = defineStore("user-login", {
  state: () => {
    return {
      userInfo: {},
    };
  },
  persist: [
    {
      paths: [ "userInfo"],
      storage: localStorage,
    },
  ],
  actions: {
    userLogin(data: loginInfo) {
      return new Promise((resolve, reject) => {
        
      });
    },
  },
});
export default useLogin;
